import {ref, computed, reactive} from 'vue'
import { defineStore } from 'pinia'

export const useUserInfoStore = defineStore('userInfo', () => {
  let isLogin = ref(false);
  let userData = reactive({
    account:'',
    password:'',
    nickname:''
  })
  const changeUserData = ({account,password,nickname})=>{
    userData.account = account;
    userData.password = password;
    userData.nickname = nickname;
  }

  return { isLogin, userData, changeUserData }
})
